From 521752c0b7885d58344ef2ec7bfa2463005fcc70 Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk[iap10]" Date: Fri, 25 Mar 2005 11:41:40 +0000 Subject: [PATCH] bitkeeper revision 1.1159.258.67 (4243f8f4bOCvwTNPuva3gzEiuhWgSw) fix to xend --- tools/python/xen/xend/Vifctl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/Vifctl.py b/tools/python/xen/xend/Vifctl.py index bfc750315a..fe33ecbc71 100644 --- a/tools/python/xen/xend/Vifctl.py +++ b/tools/python/xen/xend/Vifctl.py @@ -39,7 +39,8 @@ def network(op, script=None, bridge=None, antispoof=None): def set_vif_name(vif_old, vif_new): if vif_old == vif_new: - vif = view_new + vif = vif_new + return vif if os.system("ip link show %s" % vif_old) == 0: os.system("ip link set %s down" % vif_old) os.system("ip link set %s name %s" % (vif_old, vif_new)) -- 2.30.2